package com.example.jiaju.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

//Decoration  and  Work  联合查询表
@NoArgsConstructor
@Data
public class DecAndWork implements Serializable{


    @SerializedName("msg")
    public String msg;
    @SerializedName("code")
    public Integer code;
    @SerializedName("page")
    public List<PageDTO> page;

    @NoArgsConstructor
    @Data
    public static class PageDTO implements Serializable{
        @SerializedName("decId")
        public Integer decId;
        @SerializedName("decName")
        public String decName;
        @SerializedName("decFans")
        public Integer decFans;
        @SerializedName("decLike")
        public Integer decLike;
        @SerializedName("decLabel")
        public String decLabel;
        @SerializedName("decAdd")
        public String decAdd;
        @SerializedName("decImg")
        public String decImg;
        @SerializedName("works")
        public List<WorksDTO> works;

        @NoArgsConstructor
        @Data
        public static class WorksDTO implements Serializable {
            @SerializedName("workId")
            public Integer workId;
            @SerializedName("decId")
            public Integer decId;
            @SerializedName("workTitle")
            public String workTitle;
            @SerializedName("workLabel")
            public String workLabel;
            @SerializedName("workPrice")
            public Integer workPrice;
            @SerializedName("workArea")
            public Integer workArea;
            @SerializedName("workAdd")
            public String workAdd;
            @SerializedName("workDetail")
            public String workDetail;
            @SerializedName("workPic")
            public String workPic;
        }
    }
}
